%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et

{devrel, true}.

%% Platform-specific installation paths
{platform_bin_dir,  "./bin"}.
{platform_data_dir, "./data"}.
{platform_etc_dir,  "./etc"}.
{platform_lib_dir,  "./lib"}.
{platform_log_dir,  "./log"}.

%%
%% etc/app.config
%%
{web_ip,            "127.0.0.1"}.
{cluster_manager_ip,   "127.0.0.1"}.
{cluster_manager_port,  @CM_PORT@}.
{web_port,          @WEBPORT@}.
{handoff_ip,        "127.0.0.1"}.
{handoff_port,      @HANDOFFPORT@}.
{pb_ip,             "127.0.0.1"}.
{pb_port,           @PBPORT@}.
{storage_backend,   "bitcask"}.
{sasl_error_log,    "{{platform_log_dir}}/sasl-error.log"}.
{sasl_log_dir,      "{{platform_log_dir}}/sasl"}.
{repl_data_root,    "{{platform_data_dir}}/riak_repl/"}.

%% lager
{console_log_default, both}.

%% Javascript VMs
{map_js_vms,   8}.
{reduce_js_vms, 6}.
{hook_js_vms, 2}.

%%
%% etc/vm.args
%%
{node,         "@NODE@"}.
{crash_dump,   "{{platform_log_dir}}/erl_crash.dump"}.

%%
%% bin/riak
%%
{runner_script_dir,  "\`cd \\`dirname $0\\` && /bin/pwd\`"}.
{runner_base_dir,    "{{runner_script_dir}}/.."}.
{runner_etc_dir,     "$RUNNER_BASE_DIR/etc"}.
{runner_log_dir,     "$RUNNER_BASE_DIR/log"}.
{runner_lib_dir,     "$RUNNER_BASE_DIR/lib"}.
{runner_patch_dir,   "$RUNNER_BASE_DIR/lib/basho-patches"}.
{pipe_dir,           "/tmp/$RUNNER_BASE_DIR/"}.
{runner_user,        ""}.
{runner_wait_process, "riak_core_node_watcher"}.

%%
%% cuttlefish
%%
{cuttlefish,         "on"}.
{cuttlefish_conf,    "riak.conf"}.

%%
%% yokozuna
%%
{yz_solr_port, @YZSOLRPORT@}.
{yz_solr_jmx_port, @YZSOLRJMXPORT@}.
